<!DOCTYPE html>
<html lang="zh-cmn-Hans">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
		<title>鹿程智慧油站商户平台</title>
		<meta name="description" content="鹿程科技是提供加油站互联网化零管系统、营销及支付和大数据分析运营服务的行业领先科技公司。鹿程科技充分了解加油站行业的需求和新兴互联网的发展,依靠业内最先进的科技和标准化的运营,持续帮助油站业务发展创造价值。"/>
		<meta name="keywords" content="智慧油站,鹿程,鹿程智慧油站,鹿程智慧油站微信支付,加油站微信支付,加油站营销管理"/>
		<link rel="icon" href="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/title.ico" type="image/x-icon">
		<link rel="shortcut icon" href="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/title.ico" type="image/x-icon">
		<link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
		<link rel="stylesheet" href="../layui/css/layui.css" />
		<link rel="stylesheet" href="../css/style.css" />
	</head>
<body>
	<section class="section-right">
		<!--deer-tit-->
		<div class="deer-tit">
			<h3>员工管理</h3>
			<h4>工作记录</h4>
		</div>
		<!--/deer-tit-->
		<!--deer-content-->
		<div class="deer-content">
			<table class="layui-table buyer-table" lay-skin="line" lay-size="lg">
			  	<thead>
				    <tr>
				      	<th>类型</th>
				      	<th>所属</th>
				      	<th>策略</th>
				      	<th>状态</th>
				    </tr> 
			  	</thead>
			  	<tbody>
			     	<tr>			
			     		<td>出租车-红的</td>
			     		<td>出租车</td>
			     		<td><a href="">设置优惠策略</a></td>
			     		<td><button class="deer-btns buyer-btn">已关闭</button></td>
			     	</tr>
			     	<tr>			
			     		<td>出租车-红的</td>
			     		<td>出租车</td>
			     		<td><a href="">设置优惠策略</a></td>
			     		<td><button class="deer-btn buyer-btn">已开启</button></td>
			     	</tr>
			     	<tr>			
			     		<td>出租车-红的</td>
			     		<td>出租车</td>
			     		<td><a href="">设置优惠策略</a></td>
			     		<td><button class="deer-btns buyer-btn">已关闭</button></td>
			     	</tr>
			     	<tr>			
			     		<td>出租车-红的</td>
			     		<td>出租车</td>
			     		<td><a href="">设置优惠策略</a></td>
			     		<td><button class="deer-btn buyer-btn">已开启</button></td>
			     	</tr>
			  	</tbody>
			</table>
		</div>
		<!--deer-content-->
	</section>
	
	<!--js-->
	<aside>
		<script type="text/javascript" src="../layui/layui.js" ></script>
		<script type="text/javascript">
			layui.use(['laydate','jquery','layer'], function(){
			  	var laydate=layui.laydata;
			  	var $=layui.jquery;
			  	var layer=layui.layer;
			  	
			  	laydate=layui.laydate;
					laydate.render({
			        elem: '#search_time' //指定元素
			    })
					
			    
			    $('.buyer-btn').bind('click',function(){
			    	var num=$(this).index('.buyer-btn')
			    	
			    	if($('.buyer-btn').eq(num).text()=='已关闭'){
			    		layer.confirm('您确认要开启吗？',{
				     			btn:['是的','没有']
				     		},function(){
//				     			确认后
				     			$('.buyer-btn').eq(num).text('已开启')
				     			$('.buyer-btn').eq(num).removeClass('deer-btns').addClass('deer-btn')
				     			
				     			
				     			layer.msg('开启成功', {icon: 1})
				     			
				     	},function(){
				     		layer.msg('您取消了操作', {icon: 0});
				     	})
			    	}else{
			    		layer.confirm('您确认要关闭吗？',{
				     			btn:['是的','没有']
				     		},function(){
//				     			确认后
				     			$('.buyer-btn').eq(num).text('已关闭')
				     			$('.buyer-btn').eq(num).removeClass('deer-btn').addClass('deer-btns')
				     			
				     			
				     			layer.msg('关闭成功', {icon: 1})
				     	},function(){
				     		layer.msg('您取消了操作', {icon: 0});
				     	})
			    	}
			    })
			    
			    
			    
			    
			    
			    
			    
			    
			    
			})
			</script>
		</script>
	</aside>
	<!--js-->
	
	
	
</body>
</html>